package cn.edu.just.firstjavaapp.l6;

public class LambdaDemo {

    public static void main(String[] args) {
        MyInface myInface = new MyInface() {
            @Override
            public void greet(String someone) {
                System.out.println("你好，"+someone);
            }
        };

        myInface.greet("张三");

        MyInface english = s -> System.out.println("hello ,"+s);


        english.greet("Mike");
    }
}
interface MyInface { //函数接口
    public void greet(String someone);
}

